<?php

/**
 * url to the root of the site, with no trailing slash
 * 
 * The default is to assume the base server url is the url to the wiki. If
 * your wiki is in a subdirectory, you will need to add the subdirectory to
 * this definition, for example:
 *   define('BASE_URL', "http://$host/foobar");
 */

$host = $_SERVER['HTTP_HOST'];
define('BASE_URL', "http://$host");

/**
 * path to the root fo the site, with no trailing slash.
 * 
 * the default is to autocalculate from __FILE__, which should
 * be fine for most servers.
 */
define('BASE_PATH', dirname(__FILE__));

/**
 * Path to the sqlite database file. If this file does not exist, it will
 * be created. The parent directory must exist, and it must be writable by
 * the web server.
 */
define('DB_FILE', BASE_PATH.'/include/db/database.db');

/**
 * This setting will create urls in this format:
 *   http://example.com/somepage
 *   http://example.com/edit:somepage
 * 
 * This feature is strongly recommended for all websites, but requires
 * the mod_rewrite apache module. Change false to true to enable.
 */
define('NICE_URLS', false);

/**
 * the password hash to require of all users who are not logged in yet
 * if this value is set, then users will be required to enter the password
 * to log in.
 * 
 * To set the password, first generate a hash of your password by running:
 *     echo -n 'your_password' | openssl sha1
 * at a command prompt (or using some other sha1 tool), and enter the result
 * as into this definition, for example if you password is 'hello', enter:
 *     define('LOGIN_PASSWORD_HASH', 'aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d');
 */
define('LOGIN_PASSWORD_HASH', false);

?>
